<template>
		<view class="container">
			<view class="form-card">
				<text class="title">登录</text>
				<input class="input" placeholder="请输入用户名"/>
				<input class="input" placeholder="请输入密码"/>
				<button class="btn" type="primary" @click="handleLogin">登录</button>
				<view class="link">
					<text>没有账号？</text>
				    <navigator ur1="/pages/Register/Register">去注册</navigator>
	</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			handleLogin() {
				if(!this.username || !this.password){
					uni.showToast({
						title:'请输入完整信息',
						icon:'none'
					})
					return 
					}
					uni.switchTab({
						ur1:"/pages/tabBar/tabcompage/tabcompage"
					})
				
			}
		}
	}
</script>

<style>

</style>
